package com.hsgene.consumables.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 耗材库存表
 *
 * @author wxf
 * @date 2018/8/14 17:06
 **/
@Table(name = "genetic_goods")
public class ConsumablesInventoryInfo implements Serializable {
    /**
     * 编号
     */
    private Integer number;
    /**
     * id
     */
    @Id
    private String id;
    /**
     * 耗材名称
     */
    private String name;
    /**
     * 库存数量
     */
    private int amount;
    /**
     * 单位id
     */
    private String unitId;
    /**
     * 累积使用量
     */
    private Integer totalUsedAmount;
    /**
     * 预警值
     */
    private Integer warningAmount;

    //创建时间
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createDateTime;
    //更新时间
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateDateTime;
    //删除标记(0正常1删除)
    private Integer deleteFlag;


    private Integer isUsed;


    /**
     * 耗材创建这名字
     */
    private String creatorName;
    /**
     * 耗材更新者名字
     */
    private String updaterName;

    /**
     * 备注
     */
    private String remarks;

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getAmount() {
        return amount;
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }


    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTotalUsedAmount() {
        return totalUsedAmount;
    }

    public void setTotalUsedAmount(Integer totalUsedAmount) {
        this.totalUsedAmount = totalUsedAmount;
    }

    public Integer getWarningAmount() {
        return warningAmount;
    }

    public void setWarningAmount(Integer warningAmount) {
        this.warningAmount = warningAmount;
    }

    public Date getCreateDateTime() {
        return createDateTime;
    }

    public void setCreateDateTime(Date createDateTime) {
        this.createDateTime = createDateTime;
    }

    public Date getUpdateDateTime() {
        return updateDateTime;
    }

    public void setUpdateDateTime(Date updateDateTime) {
        this.updateDateTime = updateDateTime;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getUpdaterName() {
        return updaterName;
    }

    public void setUpdaterName(String updaterName) {
        this.updaterName = updaterName;
    }


}
